import com.gupaoedu.baifc.singleton.InnerStaticSingleton;
import com.gupaoedu.baifc.singleton.LazySingleton;
import com.gupaoedu.baifc.singleton.ThreadLocalSingleton;

/**
 * projectName: baifc_singleton
 * packageName: PACKAGE_NAME
 * Created: 2019/3/12.
 * Auther: baifc
 * Description: 生成实例的线程
 */
public class ExcuteThread implements Runnable{

    public void run() {

//        LazySingleton singleton = LazySingleton.getInstance();

//        InnerStaticSingleton singleton = InnerStaticSingleton.getInstance();

        ThreadLocalSingleton singleton = ThreadLocalSingleton.getInstance();

        System.out.println(Thread.currentThread().getName() + ":" + singleton);
    }
}
